﻿<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh-CN" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="zh-CN" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html class="no-js" lang="zh-CN" ng-app="meb">
<!--<![endif]-->
<head>
    <meta name="robots" content="nofollow">
    <meta name="robots" content="NOINDEX,NOFOLLOW,noarchive" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10">
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <title>爱吃后台内容管理</title>
    <link rel="stylesheet" type="text/css" href="~/Content/upload/webuploader.css" />
    <link rel="stylesheet" type="text/css" href="~/Content/upload/style.css" />
    <link href="~/content/css/bootstrap/bootstrap.min.css" rel="stylesheet" />
    <link href="~/content/css/bootstrap/bootstrap-responsive.min.css" rel="stylesheet" />
    <link href="~/content/css/font/font-awesome.min.css" rel="stylesheet" />
    <link href="~/content/css/style-metro.css" rel="stylesheet" />
    <link href="~/content/css/default.css" rel="stylesheet" id="style_color" />
    <link href="~/Content/css/xcConfirm.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="/Content/upload/webuploader.css" />
    <link rel="stylesheet" type="text/css" href="/Content/upload/style.css" />
    <script src="/Content/Scripts/jquery-1.10.2.js"></script>
    <script src="/Content/Scripts/jquery-ui-1.10.1.custom.min.js"></script>
    <script src="/Content/Scripts/jquery.unobtrusive-ajax.js"></script>
    <script src="~/Content/Scripts/FileUpload.js"></script>
    <script src="/Content/Scripts/jquery.validate.js"></script>
    <script src="/Content/Scripts/jquery.slimscroll.min.js"></script>
    <script src="/Content/Scripts/bootstrap.js"></script>
    <script src="/Content/Scripts/app.js"></script>
    <script src="/Content/Scripts/xcConfirm.js" charset="utf-8"></script>
    @*<script src="~/Content/Scripts/ueditor/ueditor.config.js"></script>
        <script src="~/Content/Scripts/ueditor/ueditor.all.js"></script>*@
    <script src="~/Content/Scripts/base.js"></script>
    <style>
        #editForm label.error {
            margin-left: 10px;
            width: auto;
            display: inline;
            color: red;
            font-style: italic;
        }

        .container-fluid .brand {
            margin-left: 20px;
        }
    </style>
</head>
@{Html.RenderAction("_MyLayout", "LayoutContainer");}



@*<% Html.RenderPartial("_MyLayout", LayoutContainer); %>*@

<body class="page-header-fixed page-sidebar-fixed">
    @*<message></message>*@
    <div class="header navbar navbar-inverse navbar-fixed-top">
        <!-- BEGIN TOP NAVIGATION BAR -->

        <div class="header-inner">
            <div class="container-fluid">
                <a class="brand" href="/" style="color:#fff;">
                    &nbsp;&nbsp;爱吃 - 后台内容管理
                </a>


                <div class="date-nav">
                    <div class="dashboard-date-range" style="display: block;cursor:default;padding-right:45px;">
                        <i class="icon-calendar"></i>
                        <span>
                            @{
                                string[] weekdays = { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" };
                                string week = DateTime.Now.ToString("yyyy-MM-dd HH:mm - ") + weekdays[Convert.ToInt32(DateTime.Now.DayOfWeek)];
                            }
                            @week
                        </span>
                    </div>
                </div>


                <a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse"
                   data-target=".nav-collapse">
                    <img src="~/Content/image/menu-toggler.png" alt="" />
                </a>
                <!-- BEGIN 顶部消息 MENU -->
                <ul class="nav pull-right">
                    <!-- BEGIN 快捷链接 -->
                    <li class="dropdown user">
                        <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                            <img alt="" src="/Content/image/head29.jpg" />
                            <span class="username">
                                欢迎回来！
                            </span>
                            <i class="icon-angle-down">
                            </i>
                        </a>
                        <ul class="dropdown-menu">
                            <li>
                                @*<a href="#">*@
                                @*<i class="icon-signout"></i>*@
                                <a href="javascript:void(0)">
                                    安全退出
                                </a>
                                @*</a>*@
                            </li>
                        </ul>
                    </li>
                    <!-- END 快捷链接 -->
                </ul>
                <!-- END 顶部消息 MENU -->
            </div>
        </div>
        <!-- END TOP NAVIGATION BAR -->
    </div>


    <div class="page-container">
        <!-- begin 侧栏菜单 -->
        <!-- END 侧栏菜单 -->
        <div class="page-content">
            <div class="container-fluid">
                <div class="row-fluid">
                    <div class="span12" ng-controller="commController">
                        @RenderBody()
                    </div>
                </div>

            </div>
        </div>
    </div>

    <!-- 模态框（Modal） start -->
    <div class="modal fade model-index" id="myModal" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" data-focus-on="input:first" data-replace="true" data-keyboard="false" data-backdrop="static" aria-hidden="false">
        <div class="modal-dialog">
            <div class="modal-content">
            </div>
        </div>
    </div>
    <!-- 模态框（Modal） end -->
    <script>
        App.init();
        //$("#myModal").on("hidden.bs.modal", function () {
        //    $(this).removeData("bs.modal");
        //});
        (function ($) {
            //$(document).on("submit", "#searchform", doSearch);
            $(document).on("change", "#searchform .select", doSearch);
            // $(document).on("click", "#searchform .searchbtn", doSearch);
        })(jQuery);

        //点击搜索
        function doSearch() {
            loadingpic("#listdata");
            $("#searchform").submit();
            return false;
        }

        var loadingpic = function (obj) {
            var str = '<div style="width: 100%;text-align: center;margin: 100px -1px;">' +
                '<img src="../../Content/Images/waiting.gif"/>' +
                '<br /><span id="loading-msg">加载中 ...</span>' +
                '</div>';
            return $(obj).html(str);
        };

        //表单数据验证提交
        function setValidate(form, options) {
            form.unbind("submit").on("submit", function (e) {
                if (form.valid()) {
                    $.post(form.attr("action"), form.serialize(), function (result) {
                        if (result && result.IsError) {
                            alert(result.ErrMsg);
                        }
                        else {
                            if (options && options.callback) {
                                options.callback();
                            }
                            else {
                                returnUrl();
                            }
                        }
                    });
                }
                return false;
            }).validate(options);
        }

        //模态窗口表单数据提交关闭
        function setModelValidate(form, options) {
            form.unbind("submit").on("submit", function (e) {
                if (form.valid()) {
                    $.post(form.attr("action"), form.serialize(), function (result) {
                        if (result && result.IsError) {
                            if (result.ErrMsg != "") {
                                $("#warning").html(result.ErrMsg);
                            }
                            $("#warning").stop({ clearQueue: true }).fadeIn().delay(2000).fadeOut(1000);
                        }
                        else {
                            if (options && options.callback) {
                                options.callback();
                            }
                            else {
                                $("#myModal").on("hidden.bs.modal", function () {
                                    $(this).removeData("bs.modal");
                                });
                                //添加关闭模态窗口方法
                                $('#myModal').modal("hide");
                                window.location.reload();
                            }
                        }
                    });
                }
                return false;
            }).validate(options);
        }

        //页面返回
        function returnUrl() {
            var ul = $('[name=pageIndex]').val();
            if (ul.length > 0) {
                if (ul.indexOf('&') > 0) {

                    if (ul.substr(ul.indexOf('&')).length > 0) {
                        ul = ul.substr(0, ul.indexOf('&'));
                    }
                }
            }
            window.location.href = ul;
        }

 

    </script>

    @RenderSection("Scripts", required: false)
    <script src="~/Content/Scripts/ueditor.config.js"></script>
    <script src="~/Content/Scripts/ueditor.all.js"></script>
    <script src="~/Content/Scripts/angular.js"></script>
    <script src="~/Authform/js/angular-messages.js"></script>
    <script src="~/Content/Scripts/ui-bootstrap-tpls-0.13.0.min.js"></script>
    <script src="~/Content/Scripts/directive.js"></script>
    <script src="~/Content/Scripts/service.js"></script>
    <script src="~/Content/Scripts/lgqcontroller.js"></script>
    <script src="~/Content/Scripts/zcontroller.js" charset="gb2312"></script>
    <script src="~/Content/Scripts/lcontroller.js"></script>
    <script src="~/Content/Scripts/controller.js"></script>
    <script type="text/javascript" src="/Content/upload/webuploader.js"></script>
</body>


</html>
